@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  background-color: #0d1a28;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  position: relative;
  margin: 10px;
  padding: 20px;
  min-height: calc(100vh - 88px - 35px - 20px);
  background: rgba(136, 171, 218, 0.2);
  border-radius: 4px;
  &::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("../images/bg.png");
    background-size: cover;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.el-table {
  color: #303133;
  font-size: 14px;
  font-weight: 500;

  .el-tag {
    margin-right: 6px;
  }

  .el-switch__label.el-switch__label--left.is-active {
    color: #ff4949;
  }

  .el-table__header-wrapper th,
  .el-table__fixed-header-wrapper th {
    background-color: #e8f4ff !important;
    color: #1890ff !important;
  }
}

textarea {
  //font-family: Arial, Helvetica, sans-serif;
  //解决TextArea与input不一致的问题
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.el-dialog {
  border-radius: 10px;
  overflow: hidden;

  .el-dialog__header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    // background-image: linear-gradient(to left, #0f98ff, #1980ff);

    .el-dialog__title {
      color: #fff;
      font-weight: 500;
    }

    .el-icon-close {
      color: #fff;
      font-size: 24px;
    }
  }

  .el-dialog__body {
    padding: 30px 80px 30px 50px;
  }

  .el-select {
    width: 100%;
  }
}

::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.el-tooltip__popper {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

.el-checkbox {
  color: #fff;
}

.el-textarea__inner {
  background-color: transparent;
  color: #fff;
  border: 1px solid #405269;
  &:hover {
    border: 1px solid #405269;
  }
}

.el-input__inner {
  background-color: transparent;
  color: #fff;
  border: 1px solid #405269;
  &:hover {
    border: 1px solid #405269;
  }
}

.el-table {
  color: #fefefe;
  background-color: transparent;

  &::before {
    display: none;
  }

  td.el-table__cell {
    border-bottom: none;
  }

  tr {
    background-color: transparent !important;

    &.el-table__row--striped {
      td.el-table__cell {
        background: rgb(136, 171, 218, 0.2) !important;
      }
    }

    &.el-table__row {
      &:hover {
        td.el-table__cell {
          background: rgb(136, 171, 218, 0.5) !important;
        }
      }
      &.el-table__row--striped {
        &:hover {
          td.el-table__cell {
            background: rgb(136, 171, 218, 0.5) !important;
          }
        }
      }
    }
  }

  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    border: 1px solid rgba(1, 113, 253, 0.5) !important;
    th {
      color: #88abda !important;
      background-color: rgba(101, 164, 249, 0.3) !important;
      border-bottom: none !important;
    }
  }
  .el-table__fixed::before,
  .el-table__fixed-right::before {
    display: none;
  }
}

.el-dialog {
  background: #263c58;
  .el-dialog__header {
    background: #263c58;
    border-bottom: 1px solid #445e7f;
  }
}

.el-message-box {
  background: #263c58;
  border: 1px solid #263c58;
  .el-message-box__title,
  .el-message-box__message {
    color: #fff;
  }
}

.el-form {
  .el-form-item__label {
    color: #fff;
  }
}

.el-loading-mask {
  background-color: rgba(38, 60, 88, 0.1);
}

.el-popper {
  background: #263c58;
  border: 1px solid #263c58;
  .el-date-picker__time-header {
    border-bottom: 1px solid #445e7f;
  }
  .el-picker-panel__footer {
    border-top: 1px solid #445e7f;
    background: #263c58;
  }
  .el-date-table th {
    color: #eef1f6;
    border-bottom: 1px solid #445e7f;
  }
  .popper__arrow {
    border-bottom: #263c58 !important;
    &::after {
      border-bottom-color: #263c58 !important;
    }
  }
  .el-picker-panel__body {
    color: #fff;
  }
  .el-date-table td.next-month,
  .el-date-table td.prev-month,
  .el-date-picker__header-label,
  .el-picker-panel__icon-btn {
    color: #eef1f6;
  }
}

.el-descriptions {
  .descriptions-item__cell {
    background-color: rgba(101, 164, 249, 0.3) !important;
  }
}

.el-dropdown-menu {
  .el-dropdown-menu__item--divided {
    &::before {
      display: none;
    }
    border-top: none;
  }
  .el-dropdown-menu__item {
    color: #fff;
  }
}
